//: C02:Numconv.cpp
// Converts decimal to octal and hex
#include <iostream>

int main(void){
    using namespace std;
    int number;
    cout << "Enter a decimal number: ";
    cin >> number;
    cout << "value in octal = 0"
         << oct << number << '\n';
    cout << "value in hex = 0x"
         << hex << number << '\n';
}    
